package com.suse.warmstill.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 黄靖
 * @since 2022-10-19
 */
@Getter
@Setter
@TableName("tb_user")
@ApiModel(value = "TbUser对象", description = "")
public class TbUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("真实姓名")
    private String relName;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("部门 id")
    private Long depId;

    @ApiModelProperty("详细信息的id")
    private Long infoId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("账号创建时间")
    private LocalDateTime gmtCreat;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日 HH:mm:ss")
    @ApiModelProperty("最近登入时间")
    private LocalDateTime gmtLoginTime;


    @ApiModelProperty("修改时间")
    private LocalDateTime gmtUpdateTime;

    @TableLogic
    @ApiModelProperty("0 未删除 1 删除")
    private Integer isDeleted;

    @ApiModelProperty("0 未禁用 1 禁用")
    private Integer status;


}
